package com.jason.accountmd.mapper;

import com.jason.common.mapper.TransAtmoMaper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public interface AccountMapper extends TransAtmoMaper {
    @Update("UPDATE t_account SET amount = amount + #{amount} where acc_id = #{accountId}")
    public void addAmount(Long accountId, BigDecimal amount);
}
